@import "color";

html, body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    min-width: 1200px;
    overflow-y: hidden;
    color: @body-color;
}

body {
    font: .16rem/1.5 "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

*, *:after, *:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

i, em {
    font-style: normal;
}

li {
    list-style: none;
}

.inline {
    display: inline;
}

.inline-block {
    display: inline-block;
}

.mt10 {
    margin-top: .1rem;
}

.mt20 {
    margin-top: .2rem;
}

.mt30 {
    margin-top: .3rem;
}

.mr10 {
    margin-right: .1rem;
}

.mr20 {
    margin-right: .2rem;
}

.ml10 {
    margin-left: .1rem;
}

.ml20 {
    margin-left: .2rem;
}

.white-block {
    background-color: #fff;
    padding: .3rem;
}

/* element reset */
.el-container {
    height: 100%;
}

.el-header, .el-main, .el-footer {
    padding: 0 !important;
}

.el-header, .el-footer {
    //line-height: 60px;
}

.el-scrollbar {
    height: 100%;

    .el-scrollbar__wrap {
        overflow-x: hidden;

        .el-scrollbar__view {
            height: 100%;
        }

        &.el-select-dropdown__wrap {
            overflow-x: scroll;
        }
    }
}

.sidebar {
    .el-menu-item-group__title {
        line-height: .5rem;
        font-size: .16rem;
        padding-left: .4rem !important;
        color: rgba(255, 255, 255, .3);
        padding: 0;
    }
}

.small {
    font-size: .14rem;
}

.mini {
    font-size: .12rem;
}

.error {
    color: @error;

    &.el-input {
        input {
            border-color: @light-error;
        }
    }
}

.closure {
    color: @gray-color;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.clear {
    display: block;
}

.clearfix {
    &:after {
        content: '';
        display: block;
        height: 0;
        clear: both;
        visibility: hidden;
    }
}

.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
}

/* 最多两行 */
.two-single-line {
    width: 100%;
    display: -webkit-box;
    display: -moz-box;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* 页面切换动画 */
.slide-enter-active {
    -ms-transition: all .3s ease-out;
    -moz-transition: all .3s ease-out;
    -webkit-transition: all .3s ease-out;
    transition: all .3s ease-out;
}

.slide-leave-active {
    -ms-transition: all .3s ease-in;
    -moz-transition: all .3s ease-in;
    -webkit-transition: all .3s ease-in;
    transition: all .3s ease-in;
}

.slide-enter, .slide-leave-active {
    -ms-transform: translate(100%);
    -moz-transform: translate(100%);
    -webkit-transform: translate(100%);
    transform: translate(100%);
    z-index: 155;
}

/* 父子路由页面 */
.settle-box {
    position: relative;
}

.settle-sub-box {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #F5F8FB;
}

.el-loading-mask {
    z-index: 1000;
}

.head-line {
    font-size: .18rem;
    padding-left: .13rem;
    position: relative;
    margin-bottom: .2rem;

    &:before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        margin-top: -.06rem;
        height: .12rem;
        width: 3px;
        background: #4995F4;
    }

    .info {
        float: right;
        max-width: 60%;
        color: @gray-color;
        font-size: .14rem;
    }
}

.form-common {
    .form-item {
        margin-bottom: .3rem;
        overflow: hidden;

        &:last-child {
            margin-bottom: 0;
        }

        .form-item-label {
            float: left;
            width: 1.3rem;
            padding-right: .3rem;
            line-height: .3rem;
            text-align: right;
            font-size: .16rem;
            color: @gray-color;
        }

        .form-item-content {
            margin-left: 1.3rem;
            font-size: .16rem;
            line-height: .3rem;
        }
    }

    .btns {
        text-align: center;
        margin-top: 1rem;
    }
}

.toolbar {
    font-size: 0;
}

.sidebar {
    .el-menu {
        .el-submenu {
            &.is-opened {
                .el-submenu__title, .el-menu-item {
                    background-color: #40475B !important;

                    &:hover {
                        background-color: #2B3143 !important;
                    }
                }
            }
        }

        .el-menu-item {
            &.active {
                background-color: #2B3143 !important;
            }

            &.is-active {
                color: #fff;
            }
        }
    }
}
